//2009/08/14 17:33:06
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class AccessLevel
{
public:
    string canAccess(vector <int> rights, int mPerm)
    {
		string s;
		for(int i=0; i<rights.size(); i++)
		{
			if(rights[i] < mPerm) s += 'D';
			else s += 'A';
		}
		return s;
    }
};
